﻿$sitemap = "E:\approot\sitemap.xml"
$robots = "E:\approot\robots.txt"

$acl = Get-Acl $sitemap
$aclRobots = Get-Acl $robots

$rule1 = New-Object System.Security.AccessControl.FileSystemAccessRule("Everyone", "FullControl", "None", "None", "Allow")

$acl.AddAccessRule($rule1)
$aclRobots.AddAccessRule($rule1)

Set-Acl $sitemap $acl
Set-Acl $robots $aclRobots

echo "Done changing ACLs."